package com.panda.business.mapper;

import com.panda.business.domain.CommontermType;
import com.panda.framework.domain.base.DBPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommontermTypeMapper {
	
	List<CommontermType> queryCommontermType(@Param("page") DBPage page, @Param("name") String name, @Param("cid") Integer cid, @Param("did") Integer did);

	Integer queryCommontermTypeCount(@Param("page") DBPage page, @Param("name") String name, @Param("cid") Integer cid, @Param("did") Integer did);

	List<CommontermType> getAllCommontermTypeByCid(@Param("cid") Integer cid);

	CommontermType findCommontermTypeByid(@Param("id") Integer id);
	  
	Integer insert(CommontermType info);
	
	void update(CommontermType info);
	
	void delete(CommontermType info);
  
}
